class Permission extends CommonModels {
    tableFields() {
        return {
            "name": {
                "label": "名字",
                "type": "varchar(255)"
            },
            "code": {
                "label": "code",
                "type": "varchar(255)"
            },
            "pid": {
                "label": "父类ID",
                "type": "bigint(20)"
            },
            "type": {
                "label": "类型，1菜单2按钮",
                "type": "tinyint(1)"
            }
        }
    }

    rules() {
        return {

        }
    }

    tableName() {
        return '{{%permission}}';
    }

}

export default Permission;